package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the CoverGuide entity.
 */
public class CoverGuideDTO implements Serializable {

    private Long id;

    private String insuredAge;

    private String insuredAgeAbstract;

    private String healthRequirement;

    private String professionalRequirements;

    private Long productId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInsuredAge() {
        return insuredAge;
    }

    public void setInsuredAge(String insuredAge) {
        this.insuredAge = insuredAge;
    }

    public String getInsuredAgeAbstract() {
        return insuredAgeAbstract;
    }

    public void setInsuredAgeAbstract(String insuredAgeAbstract) {
        this.insuredAgeAbstract = insuredAgeAbstract;
    }

    public String getHealthRequirement() {
        return healthRequirement;
    }

    public void setHealthRequirement(String healthRequirement) {
        this.healthRequirement = healthRequirement;
    }

    public String getProfessionalRequirements() {
        return professionalRequirements;
    }

    public void setProfessionalRequirements(String professionalRequirements) {
        this.professionalRequirements = professionalRequirements;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        CoverGuideDTO coverGuideDTO = (CoverGuideDTO) o;
        if(coverGuideDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), coverGuideDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "CoverGuideDTO{" +
            "id=" + getId() +
            ", insuredAge='" + getInsuredAge() + "'" +
            ", insuredAgeAbstract='" + getInsuredAgeAbstract() + "'" +
            ", healthRequirement='" + getHealthRequirement() + "'" +
            ", professionalRequirements='" + getProfessionalRequirements() + "'" +
            "}";
    }
}
